package com.cbs.android.function.capture;

import android.content.Intent;
import android.net.Uri;

import com.cbs.android.component.application.activity.handler.CBSSimpleActivityResultHandler;

/**
 * Created by broche on 08/11/2016.
 */

public abstract class CaptureHandler extends CBSSimpleActivityResultHandler {
    public abstract void onCaptureSuccess(int requestCode, Intent intent, Uri result);

    @Override
    public final void onSuccess(int requestCode, Intent intent) {
        onCaptureSuccess(requestCode, intent, intent.getData());
    }
}
